home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Source.bin / ZipCode.java < prev    next >
Text File  |  1998-08-21  |  987b  |  45 lines

  1. package symantec.itools.awt.util.edit;
  2.  
  3.  
  4. /**
  5.  *
  6.  * Creates a formatted text field for a Zip code.
  7.  * ZipCode limits the type of text that can be entered in the text
  8.  * box to a U.S. five digit Zip Code (five-digit number).
  9.  * Text formatting logic is applied to the user input.
  10.  * If the text field already contains text, the user can select the default text
  11.  * and delete or edit it.
  12.  *
  13.  *
  14.  * @see symantec.itools.awt.FormattedTextField
  15.  *
  16.  * @version 1.0, Nov 26, 1996
  17.  *
  18.  * @author    Symantec
  19.  *
  20.  */
  21.  
  22.  
  23. public class ZipCode
  24.     extends AddressCode
  25. {
  26.     /**
  27.      * Create Zip code text field.
  28.      * This is a formatted text field
  29.      * with the following format: 99999
  30.      */
  31.     public ZipCode()
  32.     {
  33.         super(5);
  34.  
  35.         super.setMask("99999");
  36.     }
  37.     /**
  38.      * Takes no action.  Overrides setMask in FormattedTextField to prevent
  39.      * alteration of the zip code mask.
  40.      */
  41.     public void setMask(String s)
  42.     {
  43.     }
  44. }
  45.